package com.imooc.distributedemo.entity;

import com.baomidou.mybatisplus.annotations.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

@Data
@TableName("t_order")
@AllArgsConstructor
@NoArgsConstructor
@Builder
@Accessors(chain = true)
public class Order {
    @Id
//    @TableId("order_id")
    private Long orderId;

    private Integer orderStatus;

    private String buyerName;

    private String buyerPhone;

    private String buyerAddress;

    private Date createTime;

    private Date updateTime;
}
